import Vue from "vue";
import App from "./App.vue";
import router from "./router"; // 路由
import './router/permissionInterceptor'; // 加载路由权限控制
import store from "./store";
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import "./css/public.less"; // 公共css样式
import 'vue2-org-tree/dist/style.css'
import Vue2OrgTree from 'vue2-org-tree'

Vue.use(Vue2OrgTree)
Vue.use(ViewUI);
// 工具
import {backPage, isNotNull, isBlank} from "./lib/utils";
// 配置文件
import {indexPage, loginPage} from "./config/config";


Vue.prototype.$backPage = backPage
Vue.prototype.$isNotNull = isNotNull
Vue.prototype.$isBlank = isBlank
Vue.prototype.$indexPage = indexPage
Vue.prototype.$loginPage = loginPage
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
